package com.pwc.conversionTool.entity;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Transient;

import org.codehaus.jackson.annotate.JsonIgnore;

import com.googlecode.objectify.Key;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Id;


@Entity
public class Account implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -7315541938907191074L;

	@Id
	private String email;
	
	private String userName;
	
	private String password;
	
	private String company;	
	
	
	public Account() {
		super();
	}

	public Account(String email, String userName, String password,
			String company) {
		super();
		this.email = email;
		this.userName = userName;
		this.password = password;
		this.company = company;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}
	
	@JsonIgnore
	@Transient
	public Key<Account> getKey() {
	   return Key.create(Account.class, email);
	}


}
